
{% for q in questions %}
  <div id="question" name="question">
    <div id="questionText" name="fadeQ{{forloop.counter}}">  
      <!-- {{ forloop.counter }}/{{ numberOfQuestions }}: --!>
      {{q.text|safe}}
    </div>
    <div id="questionButtons" name="fadeQ{{forloop.counter}}">
      {% if forloop.last %}
        <button NAME="fadeQbY{{forloop.counter}}" ONCLICK="answer({{forloop.counter}}, '{{q.id}}', 1, '{{q.aux}}', 1);">ja</button>
        <button NAME="fadeQbN{{forloop.counter}}" ONCLICK="answer({{forloop.counter}}, '{{q.id}}', 0, '{{q.aux}}', 1);">nej</button>
        <button NAME="fadeQbU{{forloop.counter}}" ONCLICK="answer({{forloop.counter}}, '{{q.id}}', 2, '{{q.aux}}', 1);">-</button>
      {% else %}
        <button NAME="fadeQbY{{forloop.counter}}" ONCLICK="answer({{forloop.counter}}, '{{q.id}}', 1, '{{q.aux}}', 0);">ja</button>
        <button NAME="fadeQbN{{forloop.counter}}" ONCLICK="answer({{forloop.counter}}, '{{q.id}}', 0, '{{q.aux}}', 0);">nej</button>
        <button NAME="fadeQbU{{forloop.counter}}" ONCLICK="answer({{forloop.counter}}, '{{q.id}}', 2, '{{q.aux}}', 0);">-</button>
      {% endif %}
    </div>
  </div>
  <br>
{% endfor %}
